/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.sourceforge.slcwsn.event;

import net.sourceforge.slcwsn.network.Network;
import net.sourceforge.slcwsn.sensors.Sensor;
import org.apache.log4j.Logger;

/**
 *
 * @author David Miguel Antunes <davidmiguel [ at ] antunes.net>
 */
public class SensorAliveEvent extends SensorMessageEvent {

    private static final Logger logger = Logger.getLogger(SensorAliveEvent.class);

    public SensorAliveEvent(long timestamp, Sensor sensor, Network network, long sensorEventSequenceNumber) {
        super(timestamp, sensor, network, sensorEventSequenceNumber);
    }

    @Override
    public void accept(EventVisitor visitor) {
        visitor.visit(this);
    }

    @Override
    public String toString() {
        return "SensorAliveEvent from sensor " + sensor + " at " + timestamp;
    }
}
